package com.phone.client.poji.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("tb_client")
@ApiModel(value="会员的实体", description="会员表")
public class TbClient {
  @TableId(value = "id", type = IdType.AUTO)
  @ApiModelProperty(value = "会员客户ID")
  private Integer id;

  @ApiModelProperty(value = "账号")
  private String username;

  @ApiModelProperty(value = "密码")
  private String password;

  @ApiModelProperty(value = "盐值列")
  private String pwSalt;

  @ApiModelProperty(value = "角色状态（0：正常 1：停用）")
  private Integer status;

  @ApiModelProperty(value = "(身份证，护照，军官证，台胞证，港澳台来往内地通行证)")
  private String idType;

  @ApiModelProperty(value = "正面")
  private String pathFront;

  @ApiModelProperty(value = "反面")
  private String pathReverse;

  @ApiModelProperty(value = "客户名字")
  private String name;

  @ApiModelProperty(value = "联系人")
  private String contactName;

  @ApiModelProperty(value = "联系电话")
  private String contactPhone;

  @ApiModelProperty(value = "联系地址")
  private String contactAddress;

  @ApiModelProperty(value = "驾照号")
  private String licenseNo;

  @ApiModelProperty(value = "性别")
  private String sex;

  @ApiModelProperty(value = "电话")
  private String phoneNum;

  @ApiModelProperty(value = "地址")
  private String address;

  @ApiModelProperty(value = "邮箱")
  private String email;

  @ApiModelProperty(value = "会员级别（普通，金卡，白金，钻石）")
  private Integer memberLevelId;

  @ApiModelProperty(value = "账户余额")
  private BigDecimal accountBalance;

  @ApiModelProperty(value = "积分")
  private Integer integration;

  @ApiModelProperty(value = "成长值")
  private Double growth;

  @ApiModelProperty(value = "历史积分数量")
  private String historyIntegration;

  @ApiModelProperty(value = "微信返回ID")
  private Integer openId;

  @ApiModelProperty(value = "登录验证token")
  private String token;

  @ApiModelProperty(value = "头像")
  private String headPic;
  @ApiModelProperty(value = "身份证号")
  private String idCard;

  @TableField(exist = false)  //表示数据库中不存在该字段
  @ApiModelProperty(value = "会员等级信息")
  private TbMemberLevel level;
}
